import React from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.jsx'
import './App.scss'
import {
  BrowserRouter,
  HashRouter
} from 'react-router-dom'
import { Provider } from 'react-redux' //连接组件和store
import store from './store'


const root = createRoot(document.getElementById('root'))

root.render(
  // 把store 对象传给 provider 的所有后代组件
  <Provider store={store}>
    <BrowserRouter>
      <App />
    </BrowserRouter>
  </Provider>
)
